package com.bayss.core.util;

import java.util.Collection;

/**
 * program: doko
 * author: bsworld.xie
 * create: 2019-11-10 16:20
 * description:
 */
public class CollectionUtils {
    public static  boolean isEmpty(Collection collection) {
        if (collection == null) {
            return true;
        }
        if (collection.size() == 0) {
            return true;
        }
        return false;
    }

    public static boolean isNotEmpty(Collection collection) {
        return !isEmpty(collection);
    }
}
